-- GENERATED SPELL FOR [Wrath Speaker] --


function spell0_22195(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(11980,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22195', 591, 1)
end

function spell1_22195(pUnit, Event) --@Rain of Chaos,n/a--
pUnit:FullCastSpellOnTarget(34017,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22195', 9000, 1)
end

function Sorts_22195(pUnit, Event)
local choix_sorts_22195 = math.random(0, 1)
if choix_sorts_22195 == 0 then
pUnit:RegisterEvent('spell0_22195', 1, 1)
end
if choix_sorts_22195 == 1 then
pUnit:RegisterEvent('spell1_22195', 1, 1)
end
end

function mob22195_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22195', math.random(1500, 3000), 1)
end

function mob22195_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22195_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22195_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22195, 1, 'mob22195_Action')
RegisterUnitEvent(22195, 2, 'mob22195_Leave')
RegisterUnitEvent(22195, 3, 'mob22195_Kill')
RegisterUnitEvent(22195, 4, 'mob22195_Die')
